package com.lxs.votesystem.util;
/**
 * ajax请求返回结果类
 * @author Administrator
 *
 */
public class AjaxResult {
	private boolean success;
	private String message;
	private Object data;
	public AjaxResult(boolean success, String message, Object data) {
		super();
		this.success = success;
		this.message = message;
		this.data = data;
	}

	public AjaxResult() {
	}

	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return "AjaxResult [success=" + success + ", message=" + message + ", data=" + data + "]";
	}
}
